﻿@namespace Masa.Blazor
@inherits ThemeComponentBase

<CascadingValue Value="ComputedTheme" Name="MasaBlazorCascadingTheme">
    <ShowTransitionElement
        Value="@(Show ?? true)"
        Tag="@Tag"
        Class="@GetClass()"
        Style="@GetStyle()"
        id="@Id"
        @attributes="@Attributes"
        ReferenceCaptureAction="r => Ref = r">
        @GenBody()
    </ShowTransitionElement>
</CascadingValue>

@code {

    protected virtual RenderFragment GenBody() => __builder => { @ChildContent };

}